/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lu.med.praxiswahl.wahlumed.model.beans;

import java.io.Serializable;
import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 * 
 * @author pkendzo
 */
@Entity
@Table(name = "PRAXIS_ARTZBRIEFEN")
public class DoctorLettersTBL implements Serializable
{

    private static final long serialVersionUID = 1L;

    public DoctorLettersTBL()
    {

    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long artzbriefen_nummer;

    private String bezeichner;
    private String typ; // Internal or external

    @Column(columnDefinition = "TEXT")
    private String text;

    @Temporal(javax.persistence.TemporalType.DATE)
    private Calendar datum;

    @ManyToOne
    @JoinColumn(name = "patientin_matricule_nummer", nullable = false)
    private CustomerTBL customer;

    public String getBezeichner()
    {
	return bezeichner;
    }

    public void setBezeichner(String bezeichner)
    {
	this.bezeichner = bezeichner;
    }

    public CustomerTBL getCustomer()
    {
	return customer;
    }

    public void setCustomer(CustomerTBL customer)
    {
	this.customer = customer;
    }

    public Calendar getDatum()
    {
	return datum;
    }

    public void setDatum(Calendar date)
    {
	this.datum = date;
    }

    public String getText()
    {
	return text;
    }

    public void setText(String text)
    {
	this.text = text;
    }

    public String getTyp()
    {
	return typ;
    }

    public void setTyp(String typ)
    {
	this.typ = typ;
    }

    public long getArtzbriefen_nummer()
    {
	return artzbriefen_nummer;
    }

    public void setArtzbriefen_nummer(long artzbriefen_nummer)
    {
	this.artzbriefen_nummer = artzbriefen_nummer;
    }

}
